package com.xinghou.platform.dao.main;

import java.sql.Timestamp;
import java.util.List;

import org.springframework.dao.DataAccessException;

import com.xinghou.platform.model.main.SharedCardBrowse;

public interface SharedCardBrowseDAO {
	public List<SharedCardBrowse> getSharedCardBrowse(int num,int cardid );
	
    public SharedCardBrowse getSharedCardBrowseByid(Integer Id)throws DataAccessException;
	
	public int updateSharedCardBrowse(SharedCardBrowse sharedCardBrowse) throws DataAccessException;
		
	public int saveSharedCardBrowse(SharedCardBrowse sharedCardBrowse) throws DataAccessException;
	
	public SharedCardBrowse getSharedCardBrowseBytwo(Integer userId,Integer cardId )throws DataAccessException;
	
	public int getSharedCardBrowseByCardIdBrowseType(Integer browseType,Integer cardId) throws DataAccessException;
	
	/**
	 * 获得分享卡点赞或
	 * @param cardid	分享卡ID
	 * @param time		最小时间
	 * @param rowNum	行数
	 * @return
	 * @throws DataAccessException
	 */
	public List<SharedCardBrowse> getListByCardidTime(int cardid,Timestamp time,int rowNum)throws DataAccessException;

}
